import request from '@/api/request'
const token = localStorage.getItem('token')
export const health = ({ currentPage, pageSize, queryString }) => {
  return request({
    url: `/identification/tcm/${currentPage}/${pageSize}`,
    method: 'GET',
    params: {
      queryString
    },
    headers: {
      accept: 'application/json',
      Authorization: `Bearer ${token}`
    }
  })
}
export const healthDetailUpdate = (data) => {
  return request({
    url: '/identification/info',
    method: 'PUT',
    data: data,
    headers: {
      accept: 'application/json',
      Authorization: `Bearer ${token}`
    }
  })
}

export const healthDetailInsert = (healthData) => {
  return request({
    url: '/identification/healthInfo',
    method: 'POST',
    data: healthData,
    headers: {
      accept: 'application/json',
      Authorization: `Bearer ${token}`
    }
  })
}
